/**
 * Created by DevilsEyes on 2016/4/22.
 */
//studentList
define([], function () {
    'use strict';

    var vm = avalon.define({
        $id: 'studentList',
        list: [],
        limit: 20,
        getList: function () {
            $.ajax({
                url: '/api/admin/user/list',
                data: {
                    limit: vm.limit,
                    index: vm.list.length
                },
                success: function (data) {
                    vm.list = data.list;
                }
            })
        }
    });

    return {
        init: function () {
            vm.list = [];
            vm.getList();
            // $root.page = temp;
        }
    }
});
